<template>
  <div class="purchase-order">
    <div class="search-condition">
      <el-form ref="form" :model="form" label-width="120px">
        <el-form-item label="单据编号">
          <el-input
            :label="单据编号"
            v-model="input"
            placeholder="请输入内容"
          ></el-input>
        </el-form-item>
        <el-form-item label="单据日期时间">
          <el-col :span="11">
            <el-date-picker
              type="date"
              placeholder="开始时间"
              v-model="form.date1"
              style="width: 100%"
            ></el-date-picker>
          </el-col>
          <el-col class="line" :span="2">-</el-col>
          <el-col :span="11">
            <el-date-picker
              placeholder="结束时间"
              v-model="form.date2"
              style="width: 100%"
            ></el-date-picker>
          </el-col>
        </el-form-item>
        <el-form-item label-width="50px">
          <el-button type="primary">查询</el-button>
        </el-form-item>
      </el-form>
    </div>
    <PurchaseOrderTable />
    <div class="block">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage4"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="100"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
      >
      </el-pagination>
    </div>
  </div>
</template>
  
  <script>
import PurchaseOrderTable from "./PurchaseOrderTable.vue";

export default {
  components: { PurchaseOrderTable },
  name: "purchaseOrder",
  data() {
    return {
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
    };
  },
};
</script>
  
<style>
.search-condition {
  display: flex;
  margin: 10px 0;
}
.search-condition > form {
  display: flex;
}
.search-condition input {
  width: 200px;
}
.block{
  text-align: right;
}
</style>
  